<extend name="public@emptypage" />
<block name="content">
<div class="card">
	<div class="card-header card-header-primary">

    		<ul class="nav nav-tabs" data-tabs="tabs">
			<li class="nav-item">
				<a class="nav-link" href="{:url('Hook/sync')}">同步钩子</a>
			</li>
		</ul>
	</div>
	<div class="row">
		<div class="col-md-12">
			<div class="card-body">
			
			    <form action="" method="post" class="margin-top-20">
			        <php>
			            $types = ["1"=>'系统钩子','2'=>'应用钩子','3'=>'模板钩子','4'=>'后台模板钩子'];
			        </php>
			        <table class="table table-hover table-bordered">
			            <thead>
			            <tr>
			                <th width="40">ID</th>
			                <th>名称</th>
			                <th>类型</th>
			                <th>描述</th>
			                <th width="150">{:lang('ACTIONS')}</th>
			            </tr>
			            </thead>
			            <tbody>
			            <foreach name="hooks" item="vo">
			                <tr>
			                    <td>{$vo.id}</td>
			                    <td>{$vo.name}:{$vo.hook}</td>
			                    <td>{$types[$vo.type]}</td>
			                    <td>{$vo.description}</td>
			                    <td>
			                        <a href="javascript:parent.openIframeLayer('{:url('Hook/plugins',['hook'=>$vo['hook']])}','钩子{$vo.name}插件管理',{});">管理插件</a>
			                    </td>
			                </tr>
			            </foreach>
			            </tbody>
			        </table>
			    </form>

			</div>
		</div>
	</div>
</block>
<block name="script">

<script src="__STATIC__/js/admin.js"></script>

</block>